package com.mygdx.game.desktop;

import java.io.IOException;

import test.TestGame;

import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
public class DesktopLauncher{
	public static void main(String[] arg) throws IOException {
		LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
		config.width = 320;
		config.height = 480;
		TestGame testGame= new TestGame();
		new LwjglApplication(testGame, config);
		
//		File f = new File(DesktopLauncher.class.getResource("").getPath()); 
//		///Users/haocao/git/CHGame/my-gdx-game-desktop/bin/com/mygdx/game/desktop
//		System.out.println(f); 
//		
//		///Users/haocao/git/CHGame/my-gdx-game-desktop
//		File directory = new File("");//参数为空 
//		String courseFile = directory.getCanonicalPath() ; 
//		System.out.println(courseFile); 
//		
//		File assetFile = new File(courseFile+File.separator+"assets");
//		System.out.println("assets:"+assetFile.list().length+","+CHFileHelper.getFileHandles("").length);
	}
	
	

}
